cmake_minimum_required (VERSION 2.6)
project ("Ejercicio3")

set(SRC_DIR src/)
set(OUT_DIR bin/)
set(CMAKE_BUILD_TYPE Debug)

include_directories("${SRC_DIR}")
include_directories("${SRC_DIR}ipc")
include_directories("${SRC_DIR}common")

AUX_SOURCE_DIRECTORY ("${SRC_DIR}ipc" COMMON_SRC)
AUX_SOURCE_DIRECTORY ("${SRC_DIR}common" COMMON_SRC)

file(MAKE_DIRECTORY ${OUT_DIR})
file(COPY elementosSospechosos.txt itemsEquipaje.txt DESTINATION ${OUT_DIR})

add_executable(${OUT_DIR}launcher             ${SRC_DIR}launcher.cpp             ${COMMON_SRC})
add_executable(${OUT_DIR}estacionVerificacion ${SRC_DIR}estacionVerificacion.cpp ${COMMON_SRC})
add_executable(${OUT_DIR}estacionSospechosos  ${SRC_DIR}estacionSospechosos.cpp  ${COMMON_SRC})
add_executable(${OUT_DIR}notificador          ${SRC_DIR}notificador.cpp          ${COMMON_SRC})
add_executable(${OUT_DIR}pasajero             ${SRC_DIR}pasajero.cpp             ${SRC_DIR}EstacionDepositoEquipaje.cpp ${COMMON_SRC})
add_executable(${OUT_DIR}robot                ${SRC_DIR}robot.cpp                ${COMMON_SRC})
add_executable(${OUT_DIR}terminator           ${SRC_DIR}terminator.cpp           ${COMMON_SRC})
